package memleak.test.com.testlist;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;


/**
 * Created by runrun on 2017/4/25.
 */

public class LabelView extends RelativeLayout {
    private ImageView mLeft, mRight;
    private TextView mTitleView;
    private final static String CLOR_TITLE = "#D0D0D3";

    public LabelView(Context context) {
        this(context, null);
    }

    public LabelView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public LabelView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context);
    }

    private void initView(Context context) {
        LayoutInflater.from(context).inflate(R.layout.labelview_layout, this, true);
        mLeft = (ImageView) findViewById(R.id.pro);
        mRight = (ImageView) findViewById(R.id.right);
        mTitleView = (TextView) findViewById(R.id.titleView);
    }

    public void updateView(LabelBean bean) {

            mTitleView.setText(bean.getTitle());

    }


}
